import { type RouteRecordRaw } from 'vue-router';

export const statisticalRoutes: RouteRecordRaw[] = [
  {
    path: '/statistical',
    name: 'statistical',
    meta: { title: '统计报表', icon: 'chart' },
    children: [
      {
        path: 'timeDelay',
        name: 'timeDelay',
        meta: { title: '服务延时统计', icon: 'menu-table' },
        component: () => import('@/views/statistical/timeDelay/Index.vue'),
      },
      {
        path: '/operation',
        name: 'operation',
        meta: { title: '设备运行率统计', icon: 'menu-run-report' },
        children: [
          {
            path: 'dailyPaper',
            name: 'dailyPaper',
            meta: { title: '运行率-日报', icon: 'menu-run' },
            component: () => import('@/views/statistical/dailyPaper/Index.vue'),
          },
          {
            path: 'weeklyReport',
            name: 'weeklyReport',
            meta: { title: '运行率-周报', icon: 'menu-run' },
            component: () =>
              import('@/views/statistical/weeklyReport/Index.vue'),
          },
          {
            path: 'monthlyReport',
            name: 'monthlyReport',
            meta: { title: '运行率-月报', icon: 'menu-run' },
            component: () =>
              import('@/views/statistical/monthlyReport/Index.vue'),
          },
          {
            path: 'detailReport',
            name: 'detailReport',
            meta: { title: '运行率-明细报表', icon: 'menu-run' },
            component: () =>
              import('@/views/statistical/detailReport/Index.vue'),
          },
        ],
      },
      {
        path: 'onLineTime',
        name: 'onLineTime',
        meta: { title: '实时在线率统计', icon: 'menu-dictionary' },
        component: () => import('@/views/statistical/onLineTime/Index.vue'),
      },
      {
        path: 'onLineHistory',
        name: 'onLineHistory',
        meta: { title: '历史在线数统计', icon: 'menu-earthquake' },
        component: () => import('@/views/statistical/onLineHistory/Index.vue'),
      },
      {
        path: 'reportStatistics',
        name: 'reportStatistics',
        meta: { title: '地震数据统计', icon: 'menu-respone' },
        component: () =>
          import('@/views/statistical/reportStatistics/Index.vue'),
      },
    ],
  },
];
